package com.scut.project.client;/**
 * 功能描述
 *
 * @author MyFellingIsBetter
 * @date 2024/11/06  21:43
 */

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.InputStream;

/**
 *@ClassName SpeechRecognitionClient
 *@Description TODO
 *@Author MyFellingIsBetter
 *@Date 2024/11/6 21:43
 *@Version 1.0
 */
@Component
public class SpeechRecognitionClient {
    @Value("${speech-recognition.api-url}")
    private String apiUrl;
    @Value("${speech-recognition.api-key}")
    private String apiKey;

    public String recognizeSpeech(InputStream voiceInput) {
        // 伪代码：调用语音识别API将语音转为文本
        return "转化后的文本";
    }
}